package com.bwda.dsrs.systemservice.api;

import com.bwda.dsrs.base.centerbase.BaseConstants;
import com.bwda.dsrs.base.centerbase.BaseContextHandler;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @description:
 * @author: yangjun
 * @create: 2019-06-06 14:05
 */
@Configuration
public class FeginInterceptor implements RequestInterceptor {
    @Value("${feign.token}")
    private String feignToken;

    @Override
    public void apply(RequestTemplate requestTemplate) {

    }


    private Map<String, String> getHeaders() {
        Map<String, String> map = BaseContextHandler.getHeaderMaps();
        return map;
    }
}
